Skip to content

Instantly share code, notes, and snippets.

@realvjy
realvjy / ChoasLinesShader.metal
Last active May 9, 2024 11:46
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@voluntas
voluntas / index.md
Last active May 9, 2024 11:44
Zig 言語リファレンス
  • これは Zig ドキュメント 0.10.1 を DeepL Pro と ChatGPT を利用して翻訳したものです。
    • 一部 master なモノもあります、ごちゃ混ぜです
  • 自分用に翻訳しています
@wjy20030407
wjy20030407 / SER6 Pro Vest 7735HS.md
Last active May 9, 2024 11:44
SER6 Pro Vest 7735HS
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 9, 2024 11:43
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@AlexString
AlexString / InstallPipewireFedora.md
Created December 7, 2021 19:30
Install Pipewire on Fedora

Install Pipewire on Fedora

pactl info to show which audio server is running. In occasions this tends to fail showing Connection failure: connection refused. I think this is saying that there is no connection to an audio server so you'll need to enable manually the service using systemctl. please comment about it if you know more of this.

Install pipewire

If you try installing pipewire without removing pulseaudio you'll get a conflict message complaining about it.

@kelvintaywl
kelvintaywl / split.py
Last active May 9, 2024 11:39
Python Script to split CSV files into smaller files based on number of lines
import csv
import sys
import os
# example usage: python split.py example.csv 200
# above command would split the `example.csv` into smaller CSV files of 200 rows each (with header included)
# if example.csv has 401 rows for instance, this creates 3 files in same directory:
# - `example_1.csv` (row 1 - 200)
# - `example_2.csv` (row 201 - 400)
# - `example_3.csv` (row 401)
@SomajitDey
SomajitDey / freemium_port_forwarding_services.md
Last active May 9, 2024 11:38
A list of free or freemium services for exposing localhost to internet with a public ip
@jmausolf
jmausolf / create_delete_branch.md
Created February 7, 2018 20:53
Create new git branch from terminal

Add new branch

git checkout -b [branch_name]
#add and commit new files
git push -u origin [branch_name]

Add remote upstream for branch

git push --set-upstream origin [branch_name]
@ThePixelbrain
ThePixelbrain / ultimate-fix.md
Created May 15, 2023 20:53
[FTB Ultimate] Fix crash with recent Java 8 versions

The original FTB Ultimate for MC 1.4.7 crashes during startup with new versions of Java. This applies to any 1.4.7 modpack including Forestry or Railcraft. A crash might look like the following:

[SEVERE] [Railcraft] The mod Railcraft is expecting signature a0c255ac501b2749537d5824bb0f0588bf0320fa for source railcraft.jar, however there is no signature matching that description
[SEVERE] [Railcraft] Tampering Detected. Please re-download Railcraft.

Solution:

  1. Download this file, name it java.security and save it in the instances base folder (the .minecraft folder)
  2. Add the following Java argument to your game: -Djava.security.properties=java.security